﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="forgotpassword.aspx.cs" Inherits="Web.forgotpassword" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>ลืมรหัสผ่าน [ Forgot Password ]</title>
    <link href="contents/css/Style.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
         <asp:ScriptManager ID="spt_Manager" runat="server" />
        <script type="text/javascript" language="javascript">
            // debugger;
            Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler);
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
            function BeginRequestHandler(sender, args) {
                var elem = args.get_postBackElement();
                //ActivateAlertDiv('visible', 'opacityDiv', '');
                var pleaseWait = 'กรุณารอสักครู่...';
                ActivateAlertDiv('visible', 'opacityDiv', '<div class="opacity"><table style="width: 100%;height: 100%;" ><tr><td style="width: 100%;height: 100%;text-align: center;vertical-align: middle;" ><div class="opacity-center">' + pleaseWait + '</div></td></tr></table></div>');
            }
            function EndRequestHandler(sender, args) {
                //ActivateAlertDiv('hidden', 'opacityDiv', '');
                ActivateAlertDiv('hidden', 'opacityDiv', '');
            }
            function ActivateAlertDiv(visstring, elem, msg) {
                var adiv = $get(elem);
                adiv.style.visibility = visstring;
                adiv.innerHTML = msg;
            }
        </script>
    <div style="width: 100%;height: 100%;">
    <div><asp:Label ID="Label2" runat="server" CssClass="label" Text="ลืมรหัสผ่าน [ Forgot Password ]"></asp:Label></div>
    <table cellpadding="2">
        <tr>
            <td><asp:Label ID="Label1" runat="server" CssClass="label" Text="ป้อน Email ของคุณ"></asp:Label> :</td>
            <td><asp:TextBox ID="txEmail" TextMode="Email" CssClass="textbox" runat="server"></asp:TextBox></td>
            <td><asp:Button ID="btEmail" runat="server" Text="ร้องขอรหัสผ่านเข้า Email " OnClick="btEmail_Click" /></td>
        </tr>
    </table>
    </div>
    </form>
</body>
</html>
